{extend name="base" /}
{block name="content"}
<div class="g-main">
    <div class="m-main-title">
        <div class="m-container-fluid">
            <a href="{:url('index/welcome')}"><i class="icon icon-home"></i>首页</a>
            <span class="icon-angle-right"></span>
            <span>运营</span>
            <span class="icon-angle-right"></span>
            <span>商户管理</span>
            <span class="icon-angle-right"></span>
            <span>商户列表</span>
            <a class="u-flush"><i class="icon-repeat"></i></a>
        </div>
    </div>
    <div class="m-main-content">
        <div class="m-container">
            <table class="m-table">
                <tr>
                </tr>
            </table>
            <form class="layui-form">
                <table class="m-table mt-10">
                    <tbody class="datas">
                    <tr>
                        <th width="5%">ID</th>
                        <th>名称</th>
                        <th>联系人</th>
                        <th>电话</th>
                        <th>身份证号</th>
                        <th>商户地址</th>
                        <th>是否推荐</th>
                        <th>时间</th>
                        <th>操作</th>
                    </tr>
                    {foreach name="data" item="v"}
                    <tr>
                        <td>{$v.id}</td>
                        <td>{$v.name}</td>
                        <td>{$v.contact_name}</td>
                        <td>{$v.phone}</td>
                        <td>{$v.idcard_txt}</td>
                        <td>{$v.address}</td>
                        <td class="m-goods-status">
							{if $v.is_flag==1}是{else}否{/if}
                        </td>
                        <td>{if $v.create_time}
                            {$v.create_time}
                            {/if}
                        </td>
                        <td class="m-opt">
                            <a href="{:url('add', ['id' => $v.id])}" title="编辑">编辑</a>
                        </td>
                    </tr>
                    {/foreach}
                    </tbody>
                </table>
            </form>
        </div>
    </div>
</div>
{/block}
{block name="extrajs"}
{include file="laypage" /}
{/block}
